package com.example.backend.service;

import com.example.backend.entity.StorageOut;
import java.util.List;

public interface StorageOutService {
    int addStorageOut(StorageOut storageOut);
    StorageOut getStorageOutById(Long id);
    List<StorageOut> getAllStorageOut();
    int updateStorageOut(StorageOut storageOut);
    int deleteStorageOut(Long id);
    List<StorageOut> getByOrderNumber(String orderNumber);
    List<StorageOut> getStorageOutByPortId(Long portId);
    Double sumOutWeightByInId(Long inId);
    /**
     * 批量出库，遇到异常立即停止，返回成功条数
     */
    int batchAddStorageOut(List<StorageOut> storageOutList);
    int deleteAll();
} 